﻿using System.Web.Mvc;
using FoosballEye.Web.Controllers;
using Microsoft.VisualStudio.TestTools.UnitTesting;


namespace FoosEye1.Tests.Controllers
{
    [TestClass]
    public class HomeControllerTest
    {
        [TestMethod]
        public void Home()
        {
            // Arrange
            string message = string.Empty;
            HomeController controller = new HomeController();

            // Act
            ViewResult result = controller.Home() as ViewResult;
            if (result != null)
            {
                message = result.ViewBag.Message;
            }

            // Assert
            Assert.AreEqual("Welcome to ASP.NET MVC!", message);
            
        }
        
    }
}
